/*
 * @Descripttion:
 * @Date: 2022-01-27 10:43:00
 * @LastEditTime: 2022-01-27 10:44:45
 */
export const fitChartSize = (size, defaultWidth = 1920) => {
  let clientWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth
  if (!clientWidth) return size
  let scale = clientWidth / defaultWidth
  return Number((size * scale).toFixed(3))
}
